In [1]:
import plotly.express as px
import matplotlib.pyplot as plt
import pandas as pd

# Import Iris dataset from scikit-learn
from sklearn.datasets import load_iris

# Load the dataset
iris = load_iris()

# Create a DataFrame
df = pd.DataFrame(data=iris.data, columns=iris.feature_names)
df['target'] = iris.target

# Functioning Plotly graph
fig = px.scatter(df, x='sepal length (cm)', y='sepal width (cm)', color='target', title='Iris Dataset')
fig.show()
In [2]:
# Matplotlib graph
plt.figure(figsize=(8, 6))
plt.scatter(df['petal length (cm)'], df['petal width (cm)'], c=df['target'])
plt.xlabel('Petal Length (cm)')
plt.ylabel('Petal Width (cm)')
plt.title('Iris Dataset')
plt.show()

My Notebook Title¶

This is a sample notebook showcasing various elements.

Some text to explain the analysis.

Table¶

Column 1 Column 2 Column 3
Data Data Data
Data Data Data

Equation¶

The equation below shows an example using LaTeX:

$$ \int_{-\infty}^{\infty} e^{-x^2} dx $$

Colored Text¶

This text is blue.

Image¶

My Image